package com.ruoyi.project.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dyun.tool.mybatis.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.dreamlu.mica.core.validation.CreateGroup;
import net.dreamlu.mica.core.validation.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典编码表 sys_dict_data
 *
 * @author dy
 */
@TableName("sys_dict_data")
@EqualsAndHashCode(callSuper = true)
@Data
public class SysDictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 字典类型
     */
    private String dictType;

    /**
     * 字典键名
     */
    @NotBlank(message = "数据标签不能为空", groups = {CreateGroup.class, UpdateGroup.class})
    private String dictLabel;

    /**
     * 字典键值
     */
    @NotBlank(message = "数据键值不能为空", groups = {CreateGroup.class, UpdateGroup.class})
    private String dictValue;

    /**
     * 字典排序
     */
    @NotNull(message = "数据数据不能为空", groups = {CreateGroup.class, UpdateGroup.class})
    private Integer seq;

    /**
     * 样式树形（其他样式扩展）
     */
    private String cssClass;

    /**
     * 表格回显样式
     */
    private String listClass;

    /**
     * 是否默认（Y是 N否）
     */
    private String isDefault;

    /**
     * 备注
     */
    private String remark;

}
